<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>魔力海洋Online</title>
	</head>
	<body>
		<script type="text/javascript">
			if (isWeiXinBrowser()) {
				alert('右上角"..."选择在浏览器打开');
			} else {
				if (isIos()) {
					
					//苹果下载地址
					location.href = 'https://www.baidu.com';
					
				} else {
					
					//Android下载地址
					location.href = 'http://download.yuyi98.com/mlhy/app/a/mlhy-1.apk';
					
				}
			}

			//判断是否微信浏览器
			function isWeiXinBrowser() {
				var ua = navigator.userAgent.toLowerCase();
				if (ua.match(/MicroMessenger/i) == "micromessenger") {
					return true;
				}
				return false;
			};

			// 判断设备为 ios
			function isIos() {
				var u = navigator.userAgent;
				if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
					return true;
				}
				return false;
			}
		</script>
	</body>
</html>
